//  This file is part of Swordbible - http://www.swordwarrior.net
//  Copyright (C) 2003-2009 Manu Mital mital.manu@gmail.com

//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2, or (at your option)
//  any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software Foundation,
//  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.



// SwordBibleView.cpp : implementation of the CSwordBibleView class
//

#include <stdafx.h>
#include "SwordBible.h"

#include "SwordBibleDoc.h"
#include "SwordBibleView.h"
#include ".\SwordBibleview.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CSwordBibleView

IMPLEMENT_DYNCREATE(CSwordBibleView, CView)

BEGIN_MESSAGE_MAP(CSwordBibleView, CView)
	// Standard printing commands

END_MESSAGE_MAP()

// CSwordBibleView construction/destruction

CSwordBibleView::CSwordBibleView()
{
	// TODO: add construction code here

}

CSwordBibleView::~CSwordBibleView()
{
}

BOOL CSwordBibleView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// CSwordBibleView drawing

void CSwordBibleView::OnDraw(CDC* /*pDC*/)
{
	CSwordBibleDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}


// CSwordBibleView diagnostics

#ifdef _DEBUG
void CSwordBibleView::AssertValid() const
{
	CView::AssertValid();
}

void CSwordBibleView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CSwordBibleDoc* CSwordBibleView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSwordBibleDoc)));
	return (CSwordBibleDoc*)m_pDocument;
}
#endif //_DEBUG



